package com.bestcem.xm.member.grpc.service.param.extendfield;

import com.bestcem.xm.common.core.constant.RegTypes;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author dc.wang <dc.wang@idiaoyan.com>
 * @version V1.0
 * @description TODO
 * @date 2021/7/21
 */
@Getter
@Setter
@ToString
public class UpdateEnumItemParam {
    /**
     * 枚举选项标识
     */
    @NotNull(message = "标识为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "标识格式错误")
    private String id;

    /**
     * 扩展字段标识
     */
    @NotNull(message = "扩展字段标识为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "扩展字段标识格式错误")
    private String fieldId;

    /**
     * 枚举选项名
     */
    @NotBlank(message = "枚举选项名为空")
    private String name;

    /**
     * 枚举选项顺序
     */
    @NotNull(message = "枚举选项顺序为空")
    private Integer serial;

    /**
     * 枚举选项可见状态
     */
    @NotNull(message = "枚举选项可见状态为空")
    private Boolean displayStatus;
}
